<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .box {
            width: 300px;
            height: 350px;
            background-color: aliceblue;
            border-radius: 10px;
            margin: 100px auto;
            padding: 40px 20px;
        }

        .zi {
            font-size: 20px;
            font-weight: bold;
        }
        .zheng input{
            height: 30px;
            border: 0;
            border-bottom: 1px solid #eee;
            margin: 10px 0;
            width: 300px;
        }
        button{
            display: inline-block;
            width: 300px;
            height: 30px;
            border-radius: 15px;
            border: 0;
            margin-top: 20px;
        }
        .hang{
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            color: blue;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="zi">密码登录</div>
        <div class="zheng">
            <input type="text" placeholder="手机/用户名" v-model="form.phone">
            <input type="password" placeholder="密码" v-model="form.pass"><br>
            <button @click="login">登录</button>
        </div>
        <div class="hang">
            <span>手机号登录</span>
            <span>忘记密码</span>
        </div>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v=new Vue({
        el:'.box',
        data:{
            form:{phone:'',pass:''}
        },
        methods:{
            login(){
                alert('用户名：'+this.form.phone+' 密码：'+this.form.pass)
            }
        }
    })
</script>